# -*- conding:UTF-8 -*-

'''
@ Project: P8 hw register_login
@ File: migrate.py
@ Author: 罗婷
@ Date：2022/6/16 16:45

'''
from flask_migrate import Migrate, MigrateCommand
from common.models.users import *
from common.models.course import *
from common.models.orders import *

from common.models import db

from flask_script import Manager

from main import app

manager = Manager(app)
migrate = Migrate(app, db)
manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manager.run()




